package com.bjsxt.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bjsxt.domain.CoinWithdraw;
import com.bjsxt.modle.CoinWithdrawVo;

import java.util.Date;

public interface CoinWithdrawService extends IService<CoinWithdraw> {

    /**
     * 根据条件分页查询提币记录
     *
     * @param page      分页对象<CoinWithdraw>
     * @param coinId    币种 ID
     * @param userId    用户 ID
     * @param userName  用户名
     * @param mobile    手机号码
     * @param status    状态
     * @param numMin    最小充值金额
     * @param numMax    最大充值金额
     * @param startTime 开始日期
     * @param endTime   结束日期
     * @return 查询出的分页数据对象
     */
    Page<CoinWithdrawVo> pageByCoinIdAndUserIdAndUserNameAndMobileAndStatusAndNumAndCreateTime(Page<CoinWithdraw> page, Long coinId, Long userId, String userName, String mobile, Byte status, Integer numMin, Integer numMax, Date startTime, Date endTime);

    /**
     * 根据用户 id 和币种 id 查询分页数据
     *
     * @param page   分页对象<CoinWithdraw>
     * @param userId 用户 ID
     * @param coinId 币种 ID
     * @return 查询出的分页数据对象
     */
    Page<CoinWithdraw> pageByUserIdAndCoinId(Page<CoinWithdraw> page, Long userId, Long coinId);
}
